package com.dk.service.Impl;

import com.dk.mapper.StudentMapper;
import com.dk.pojo.Student;
import com.dk.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;


@Service("studentService")
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentMapper mapper;


    @Override
    public Student Find(String Suser) {
        return mapper.Find(Suser);
    }

    @Override
    public List<Student> FindSt(String name) {
        return mapper.FindSt(name);
    }

    @Override
    public List<Student> FindAll() {
        return mapper.FindAll();
    }

    @Override
    public int Del(String suser) {
        return mapper.Del(suser);
    }

    @Override
    public int Add(String suser, String name, String age, String classid, String major, String address, String tele, String remarks) {
        return mapper.Add(suser, name, age, classid, major, address, tele, remarks);
    }

    @Override
    public void Xg(Student student) {
        mapper.Xg(student);
    }


}
